package cn.lizemin.service.impl;

import cn.lizemin.dao.ItemMapper;
import cn.lizemin.domain.Item;
import cn.lizemin.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: lizemin
 * @version: 1.0
 */
@Service("itemService")
@Transactional
public class ItemServiceImpl implements ItemService {
    @Autowired
    private ItemMapper itemMapper;

    @Override
    public Item findById(int id) {
        Item item = itemMapper.findById(id);
        return item;

    }




}
